<template>
  <div class="">
    <h5>搜索11</h5>
    <van-button type="primary" @click="show">轻提示</van-button>
    <van-button @click="remove">删除</van-button>
  </div>
</template>

<script>
import { Toast } from "vant";
import { Dialog } from "vant";
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {
    show() {
      Toast.loading({
        message: "加载中...",
      });
    },
    remove() {
      Dialog.confirm({
        title: "删除弹框",
        message: "是否删除",
      })
        .then(() => {
          // on confirm
        })
        .catch(() => {
          // on cancel
        });
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
